package com.example.bpmn.exception;

public enum ErrorCodes {
    PROCESS_NOT_FOUND("PROC_001", "流程不存在"),
    TASK_NOT_FOUND("PROC_002", "任务不存在"),
    INVALID_OPERATION("PROC_003", "非法操作"),
    BUSINESS_ERROR("BIZ_001", "业务异常"),
    SYSTEM_ERROR("SYS_001", "系统异常");

    private final String code;
    private final String message;

    ErrorCodes(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
} 